package org.example.springbook1.model;


import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {

    private List<T> records;
    private Integer total;

    private PageRequest pageRequest;
    public PageResult( List<T> records,Integer total,PageRequest pageRequest) {
        this.total = total;
        this.records = records;
        this.pageRequest = pageRequest;
    }
}
